package com.infore.exchange.main.service;

import com.infore.common.base.Msg;
import com.infore.common.model.entity.exchange.TJobInfo;
import com.baomidou.mybatisplus.service.IService;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 作业信息表 服务类
 * </p>
 *
 * @author lijh
 * @since 2023-02-13
 */
public interface TJobInfoService extends IService<TJobInfo> {

    boolean updateJobStateById(String jobId,Integer jobStatus);

    boolean updateExecTime(String jobId, Date preTime, Date nextTime);

    List<TJobInfo> queryHaveTaskJobInfo(String jobId, Integer jobStatus,Integer taskStatus);

    boolean deleteJob(String jobId);

    Msg<Object> addOrEdit(TJobInfo tjobinfo);

    List<String> cronParser(String cronSchedule) throws ParseException;


}
